need your advice with my small electrical problem

Could be that solenoid is not rated for 100% duty cycle. Contacts will be OK, but the coil is what will be heating up. Try a solenoid from the RV industry that is meant to isolate the RV battery from the main battery.