This started occurring to me and my friend consistently since this morning (GMT+1) (Minecraft Realms). I've had virtually no issues for the last month or so. Restarting Minecraft hasn't helped. I'm hoping it's just a server issue and not something worse.
This was using the Windows 10 - MCL 2.3.324 non-store launcher, which flashes "Play offline" and Play. Like in MCL-22184
I can configure my realm and download backups - but I can't connect to them
If anyone other than myself find their way to this to see attack range, their range is below 3 but above 2.5 blocks. The only way I've found to safely hit them is if the player is 3 blocks up, and even then you could still be hit if several hoglins bump into each other and give each other a tiny lift.
24 hours later, now the issue is no longer occuring for me. I didn't do anything, so I suspect it's just a Mojang server issue or similar.