somehow those 3 ways and that motion light are on the same circuit and it sounds like every time you hit the switch the motion goes off like it was just getting power.just like when you first turn one on and it does the test mode thing.
need to remove the motion light from the 3 way.could be neutrals or travelers.