Maybe as per Tonydon41 it is a loose sensor or connection, but if it's related to the rail or boost sensors, plugging and unplugging for the box might make it more likely to happen if you have a box?
4+1 on the old box or 3+1 on the new one were my preferred settings.