It’s okay to accidentally do it one too many times, depending on where you’re at in the ritual. If you’re halfway through or near the end of the ritual it’s best to just keep going until completion.
Theres times when ive miscounted myself. I would just try to be conscious of it if i wasyou and just finish. Its still valid, but better to not miscount