Actually it's not the OS crashing and rebooting, it's kodi crashing and the OS (LibreELEC) automatically restarting it.
And while I agree that an application crash isn't the nicest way to handle a corrupted file there's not much we can do about it ATM. So far we only know that it's crashing with some (probably not quite legal) file and maybe with some unknown kodi samples.
So, to be able to move forward with this we need a sample file so we can reproduce and analyze the issue.
so long,
Hias