2017 sportsman xp 1000 died when hot

I was hauling wood and it wasn’t overheating bouncing from 83 - 98 Celsius as the fan cut in , I stopped and spent a few mins fixing my road and it died. Took a few mins and it finally restarted, stalled 2 more times on the way out.After it cooled off seems to have lots of power and work fine . Could the fuel be getting hot and making it stall ? It was really hot in the trunk and front compartment. Should I worry about a fuel pump or is this a case of it too hot inside the plastics?

2015 Polaris 570 EFI EPS Sportsman Fuel Pump Issues

Need Help! I’m on my 3rd Fuel Pump. Pump 2 lasted 5 hours, pump 3, 1 hour. Pump 3 is coming on but not pumping any gas. The battery had low voltage. Could that be an issue? Will that effect the Fuel pump from sending fuel?
I charged the battery and still wouldn’t start. Then this morning after turning over multiple times, it started up. Very confused. Any help would be appreciated.