As I do not hold full wiring details for the x250/x290 models, I will have to make a few assumptions, which others may be able to correct.
Your problem appears to be electrical, in order to eliminate the main power supply to the ECU, I think that checking the horn operation will prove that supplies are present at the engine bay fusebox B001, via which the ECU is supplied.
If horn does not sound, then problems could be with the fusbox itself. (See current meltdown thread.) Also suspect would be the 150 mega fuse on top of the battery.
If the horn works, then the ECU, or an associated relay becomes suspect. What may be possible is that the ECU has developed a micro crack which opens when the ECU gets warmer than usual, and then you have to wait for it to cool down before the connection is remade. (I have experienced this on a washing machine, which stopped at random points in its cycle. Also on a TV.)
If you have a code reader, are there any faults recorded, particularly on the ECU?
Perhaps another forum member has an alternative explanation