Is there such a thing as a check valve with a manual release?
Add a TEE just above the check valve and a valve off the TEE. The valve is closed when the pump is working normally and you can open the valve to drain the pipe any time you want