And also it does not have to be right next to the main breaker if you can’t do it easily. It will still protect the house further down the panel. If it is not hard to put underneath the main, then do it. But if the open spaces are down a bit, that should be okay.
Ive got a whole house surge protector but it hasn’t helped with ceiling fan remote chips.