I had to move my old iPhone 7 to trash box and move to something else back in the days.
One day it started to ask to my iCloud password every time i wanted to download something. Not just the password, but the password multiple times and security questions, finishing that flow did not make the prompt go away, essentially trapping me inside some kind of never-ending auth loop which was not going away even with full factory reset. The support at the time was not answering any questions, leaving me with generic responses that i need to go thru that flow.
Apple is king of bad UX loops and frustrating experiences in software, don't know why they got hardware so right, but the software is magnitudes behind