How to debug if controller is getting reset with RESF value 0x02

Dear Team,

If we add any array or variable the controller is getting reset with RESF value 0x02,Could you explain how to find/debug for this cause of reset.