How healthy are your batteries? May sound silly, but I have a similar repeat problem with the remote on my garage door opener key fob, the same thing.
What I finally traced it down to were the cheap batteries I buy, and I always have a bunch of keys in my pocket at the same time.
Batteries: if you go to the store and buy a Duracell or whatever, they want $5 or $10 for two or three batteries. If you order the same batteries online - no name - you can get a dozen or 20 or more for the same price, but you have to wait a few days to get them. I just bought 50 of one of the little ones for $11 delivered, and split them with the cute little brunette. I’ve had really good luck with those batteries, but one out of 20 will be a dud or will be low power.
Keys in my pocket: each of the six vehicles I drive has a separate key ring, and I only bring the one I’m using with me, but if I’m fiddling in the yard, I might have three or four rings in my pocket. My regular key ring has a 8-9 keys on it, an a little knife, etc., and it’s actually a combination of two rings. And half the times I go out, I’m carrying keys for one of the properties or such also. There are two key fobs or more in my pocket at all times, one for the garage (it’s actually a four button, four garage/function controller), and one for the security system on my house, and a couple of the vehicles have remote door openers or alarms. I’ll bet that once a week I trip my alarm or I open the garage or a car vice versa when I’m bending over or I sit down and the keys somehow push a button on something. I upgraded the multifunction 4-button remote to one that has a sliding cover a couple years ago, but the cover gets worn after about six months, and it will slide up and down in my pocket. Keep your dirty thoughts to yourself. I actually put a small piece of thin but hard rubber over the panic button on my alarm, and wrapped it with friction tape, so I don’t set it off by accident.
The other thing on the 4-button garage door opener: sometimes, even with a brand new battery, it won’t open after a couple days, and then the next day it will work. I think what happens is the button is getting pressed with the jumble of keys in my pocket, and drains the battery quickly (as if you held it for an hour or such), but then when the button is not depressed, it’s chemistry balances out and regains some power, and works again. Another reason I suspect that is after it starts working again, sometimes it will only work if I get closer and closer to the garage - obviously there was some power loss.
It’s either that or the tinfoil inside your hats are different thickness and draws all the signal away sometimes. Try wearing the same hat for a week at a time and see if that helps.
My 2 cents, hope it helps.