In a normal room where the PIR is many feet away from the lights the change for the light from on to off should not trigger the PIR. However close proximity may effect the PIR and give a false trigger.
Update to Cortex 25.2.1
Create a general logic - Monostable.
Connect Gate Source A input to Lights - Set Off (Output) connection.
Connect Gate Output C to Motion Sensor - Block the output (input) connection.
Set the Monostable period to something suitable e.g. 5 seconds.
When the Light goes off the monostable will fire and it output will go high for 5 seconds blocking any false trigger of the PIR. Normnal PIR detection will then resume for occupancy detection.