rebooted because kernel failure or probably power outagePost

I’m novice.

I’ve a problem with my routerboard

This rebooted because of 2 errors,
the most popular error is: system,error,critical router rebooted without proper shutdown, probably power outage

and the other is: system,error,critical System rebooted because of kernel failure
the last error. only fron time to time

Please, I need help!
Thanks!

Hardware
Routerboard 153
MiniPCI AR5212

Software
Routeros-rb 500
Version: 2.9.38

Version: 2.9.38

Upgrade your ROS

in what version of the SO i make the upgrade?
Thanks

2.9.51