Autonomous keeps Un-initializing

The driver station un-initializes after a while in competitions. When it un-initializes after they randomize, the referees think that we are cheating and changing the program. We have tried many things, but we cannot seem to make it stay initialized for longer periods of time. We use a REV expansion hub and two Moto E4 phones. If anyone has been having this problem as well, or if anyone has a solution, please let me know. Thanks!

Are you getting a stacktrace? Is it crashing? Can you put out your code so we can look at it? There isn’t much we can do without specifics.