Under Screen Time, of all places, you can set an additional passcode, and under Screen Time privacy and content restrictions, at the very bottom, block changes to your passcode and to account changes for your apple id, which denies access to the whole icloud section in iOS settings.
Just don't forget you turned this in and then get confused why it's greyed out in settings when you go to change something in there.