Hiya,
May be nothing to do with it, but as you mentioned you’re using CEC to allow the Panasonic remote to control OSMC you might find the following 2 threads also worth following:
CEC does not work with Philips TV
[CEC]AVR shutdown after switching from TV to OSMC
Sorry that’s not a direct answer to your specific problem, but hopefully you might find the information there useful.