I have solved the problem of stopping after about 50 seconds. I had removed the clock module when trying to fix the original problem. After re-installing it, it does not stop anymore. Strange but at least it’s working now.
I replaced the ht16k33 with a ht16k33A from Aliexpress and the LEDs and Hex display work. So everything is working but it stops after about 50 seconds.
If it’s put back to off mode then it works for another 50 seconds. I have tried 3 ways to power but not solved.
Any suggestions. Mike