It is a Stihl, don’t they put some magic genies in there?
It didn’t start until it cooled off, which you are probably right it is an ignition coil. I had a similar issue on my snowblower. I’m afraid to look to see how much a new one is. I think the one for the stihl weedwhacker was 80 bucks. I will give what you said a try.