vamp it's very (very!) unusual for a Kodi related issue to cause the entire system to reboot. I'm not even sure what could cause the system to reboot (apart from a malicious addon) - normally if there's a problem the system might freeze, behave strangely or Kodi will crash, but almost never have I seen the system spontaneously reboot.
The Kodi crash log you posted (from https://forum.libreelec.tv/8.2.2) shows a MMAL crash (video player), but you're saying 8.2.3 is good and 8.2.5 is bad, so I'm not sure what the relevance is of the 8.2.2 crash log?
Given the unusual reboot behaviour I would suspect a hardware issue, possibly insufficient power supply. What kind of power supply are you using, what is the rating in amps?
It is possible the firmware in 8.2.4/8.2.5 causes the GPU to do more work which changes the power profile of the device, requiring slightly more powe and, if your power supply is marginal , it could turn a stable 8.2.3 device into an unstable 8.2.5 device. The solution is to use a correctly specified power supply with your Raspberry Pi.
If you are using a correctly specified power supply, and continue to have these "random restarts" then try a different RPi board, if possible.
If you continue to experience Kodi crashing (ie. not system reboot) while playing movies then please reproduce the issue with a LibreELEC 9/Kodi 18 test build as the version of Kodi in LE8.2.5 is no longer developed, so no fixes will be possible. Post a crash log in the Kodi forum thread from the LE9 build, ideally with a sample movie, and we can investigate that and hopefully provide a fix in LE9.