If you test pH when the chlorine is high, then you will get a falsely high reading.

Once you get this cleared up, you may want to bump your CYA higher to help you make it through the day without your chlorine dropping too low. Maybe try around 50. If you still have trouble, may try 60 or wo.