I am guessing Apple's standard system is designed with a single user using a single account in mind. Once you start doing things with multiple account then security features could be triggered. From an Apple Recommended (an older forum system whereby Apple officially designated a reply as likely containing a solution) reply by ASC contributor Eric Root:
Too Many Codes Sent - Apple Community -- "Normally, the wait time is 8 hours after the last notification."
If you keep on triggering this then you will have to change the way you handle these accounts. Apple does have services for enterprise level management of multiple accounts and you may need to transition to that.
Apple Business Essentials --> Apple Business Essentials User Guide - Apple Support
Apple Business Essentials includes all the features of Apple Business Manager and more. Apple Business Essentials is one complete subscription that seamlessly brings together device management, 24/7 support, and cloud storage so your small business can easily manage every employee’s iPhone, iPad, Mac, and Apple TV (that your organization owns)—every step of the way. Apple Business Essentials is currently available only in the United States." 20220427
Small business support by Apple --> Business - Small Business - Apple
Use Managed Apple IDs in Apple Business Manager - Apple Support
Use Managed Apple IDs in Apple Business Manager - Apple Support