Hi,

How much current is drawn by your board when the mosfet is not activated?
Are you using the brown-out detection of the microcontroller?

Best regards,

Luciano