The article linked below is a good summary. I bet most foreign tourists are not aware they even risk imprisonment for riding without helmet or without license.
https://balimotion.pro/en/blog/fines-in-bali-what-are-fined-and-how-to-avoid
According to the article; If stopped and (lets say) you "forgot" helmet and your license:
Option 1) Admit guilt, pay maximum official fine (helmet 250k + license 1Juta) in nearest bank, go back to police and receive vehicle documents to "continue journey".
Might take from a few hours if bank nearby and open or possible few days if weekend or publish holidays.
Option 2) Disagree that there is a violation, go to court, may or may not pay a fine. Could take 5 to 10 days. Receive vehicle documents to "continue journey".
Option 3) The only way currently to immediately continue the journey.
The police could improve on the process; Allow to pay (Option 1, surat tilang biru) on the spot using on-line apps like grab or tokopedia and/or mobile visa payment terminals like police on other countries carry. So we no longer will see posts from unhappy tourists, while those still good with option 3) can carry on.
I used to work my self up over traffic stops early on, but these days I just can't bother... At least something remain unchanged over the 20 odd years in/out of this region...