Limits on failing each exam

Greetings to all who are awake late in the evening, like myself, studying! :) I have a random question and I can not find any information on it in official sources (NASBA etc): Is there a LIMIT on how many times CPA exam(s) can be failed before all the previously earned credits are lost? I was under a strong impression that only 2 failures of any sections are permitted until all my credits are erased and I'm back to square 1. I'm not talking about the 18-month deadline, but for instance: if I have a credit for FAR, but take REG and fail, and then re-take REG and fail again - I will have to re-take FAR as well. I can't find any information on it now. Does such a rule even exist? Are there any limitations to the number of failures? Thank you!!