Understand limit voltage and current
On a 5KW inverter the max current would be: 

5000W/12V = 416A

The current rating should be somewhere in the manual also. So if you really are trying to switch all the batteries at the same time, 300A may not be enough to handle the 400Amps that potentially could be run across the switch. Find a better switch.