I have the same problem with a Samsung TV, some similar issue is here: https://discourse.osmc.tv/t/tv-gets-turned-on-via-cec-command-after-upgrade-to-2021-08-1
I already tried all posible solutions from both threads.
I need to disable CEC in the TV or reboot OSMC to avoid the TV to turn on after the video stopped.