Does your fan turn on when riding?
I have a 2019 honda foreman 500 that is doing the same thing. Have you figured it out yet?I'm having the same issue with a 2019 model,runs fine and never dies,but if you turn it off then try and restart it,it won't start until it cools off. And you can't hear fuel pump running will its hot.
I took mine to the Honda dealership where I bought it and they fixed it. My fuel pump was failing.I have a 2019 rubicon and have the same issue but I start with pull cord and that seems to work , I'll be checking my fan, but can't see why that would be the issue?