Air compressor valve going off
It sounds like the relief valve is sticking. Once the head pressure is gone it should close so it can start again. I have had to replace them in the past and have been able to clean carbon deposits out of the valve on oil lubricated models, and last is to make sure no sawdust or dirt is causing the arm not to close on the outside of the switch.