The record for the most mutual checks in a legal position is known. But what is the record for double checks?
There is one rule: threefold repetition applies. Four categories exist; promoted pieces allowed and not: and forced, i.e. Black defends, and unforced, i.e. Black helps.
Addendum: @Hauke Reddmann commented a known double checking mechanism. The origin of it is this century old problem as @Evargalo proposed a comment.
[Title "Alain Campbell White, Pittsburgh Gazette Times 4/1916, Mate In 12"]
[FEN "2q5/2pp4/3pr3/4pb2/K1p2pn1/2bn1kp1/3pr1R1/6BB w - - 0 1"]
1. Rf2+! Ke3 2. Rf3+ Ke4 3. Re3+ Kd4 4. Re4+ Kd55. Rd4+ Kc5 6. Rd5+ Kc6 7. Rc5+ Kb6 8. Rc6+ Kb7 9. Rb6+ Ka7 10. Rb7+ Ka8 11. Ra7+ Kb8 12. Ra8#
The record for the longest sequence in mating problem is 13, but it cannot contend for the record since Black’s king may alk out of the sequence.
[Title "Dragan Stojnic & Milomir Babic, The Problemist 2004-05, Mate In 13"]
[FEN "3q1nKB/R1P1kPRB/N3p3/1p1n2p1/2r2p2/1p2b3/P2pb2N/3r4 w - - 0 1"]
1. c8=N+! Kf6 2. Rg6+ Kf5 3. Rf6+ Ke5 4. Rf5+ Ke45. Re5+ Kd4 6. Re4+ Kd3 7. Rd4+ Kc3 8. Rd3+ Kc2 9. Rc3+ Kb2 10. Rc2+ Kb1 11. Rb2+ Ka1 12. Rb1+ Kxa2 13. Nb4#