How many times can I take the CA state exam?

There is no limit as to how many times you can take the state exam.
You can take the state exam as many times as needed until you pass.
You simply have to reschedule your next exam attempt and pay the $60 exam fee.