@Merlin-1 please don’t keep creating duplicate posts on the same topic.
I’ve merged the two posts together.
My advice to you when you posted in the SOLVED: Any timer kills my sketch (ESP core version) topic was as follows…
but you’ve not done that in either of the two topics you’ve created - which is the reason why you’ve not responded to this topic, and probably why nobody else has either.
Pete.