I had the same 'tripping off' issue on the Trek rail 5 (feb2021), it just turned itself off/on over bumps and when fault codes were read, it comes up as 'power disconnection fault'. Tried the alignment procedure a couple of times, bike shop tried it, bike shop replaced wiring loom recommended...