In older cars things like blinking lights was done with a dedicated circuit. By putting everything in software, we've actually made this class of bug appear more often.
For example, you could have a dedicated "do this thing at this time" processor. It can't be blocked, and if it accepts a job, then it is able to do it on time.
The main processor then tells this processor to do all timed tasks.
I don't imagine any class of bugs will ever completely disappear. Sure, we know how to write software that is extremely unlikely to suffer from certain classes of bugs and we have better tooling for testing, but ultimately it's dependent on humans.
If you had a windows 95 PC controlling the blinker, the exact same bug and symptoms would be totally expected...
Do how in 25 years have we not managed to quash this class of bugs? (Where a simple task needs to be done at a certain time, and gets delayed).