Auto Reboot openhab server based on Log Errors

I found few errors due to which my Xiaomi Zigbee sensors stopped working.

I have thought if any such log appears multiple times openhab should be restarted automatically without any user intervention.

Is it possible to reboot openhab server based on specific log?

Please guide.