One word, salt.
A lick of salt and a few ounces of water will quickly lower the heart rate when it's due to heat and dehydration. It's the salt that does the most good for this in the short term.
My sleeping heart rate is most often 52bpm, resting HR about 5bpm higher. When I began a keto diet I immediately found myself getting symptoms like you describe in hot weather, including very high heart rate. After looking up possible causes, I found that for me it was lack of minerals due to the body flushing it all out because of the keto, which also has the effect of being more easily dehydrated. I drank even more water - but - this alone doesn't hydrate, minerals are needed as well, electrolytes. I eventually doubled my salt intake and have been great ever since. With the increased salt intake my serum sodium level has been perfect, as are all other blood tests.
There have been a few nights when my heart rate was above 60bpm and I couldn't get to sleep. Ten minutes after 1/4 teaspoon of salt in water the heart rate dropped. This was when I was in a high state of ketosis.
BTW, a week ago I bought a Apple Watch Ultra and it works much better than my Fitbit did. Much more consistent. And it seems about as accurate as my Polar chest heart rate sensor, within a heart beat of the Polar when exercising.