Cortex Restarts Randomly

Our cortex restarts randomly during matches, or driving. The cortex doesn’t disconnect from the controller, but it does completely restart, goes back through pre autonomous, and resets all variables. It looks extremely similar to this post which had no resolution.

In it they say that the problem is caused by the integrated encoders, I am unable to get it to fail when the encoders were unplugged.
We replaced the cortex, but the problem persists.
We are using all 8 integrated encoders chained together. Before the failure occurs they are all flashing green, but after it happens encoders that are 6, 7 and 8 in the daisy chain turn red, but up until the 6th encoder the previous ones are still flashing green. The integrated encoder wire between the 5th and 6th encoder is around 5 feet long.

After it fails turning the cortex off and back on turns all of the encoders back to being green flashing.
The failure normally occurs when a motor is driving slowly, or has power applied, but is not moving.

Is there any way to solve this problem?

This does sound like the cortex is being reset due to a disruption of the communication to the IMEs. You seem to have done a good job of diagnosing the problem. It may be worth reading through some of the past discussion we have had on this issue.

In my opinion a long 5 foot connection between IMEs, in addition to all the other interconnections, is probably not going to work reliably. Perhaps if you can post some photos of the robot we can make suggestions for using alternative sensors or possibly reorganizing the IME cables to reduce the total interconnect length.