I skipped the May 2022 SU and are going straight to August 2022 SU, the HealthChecker.ps1 say:
Security Vulnerability: CVE-2022-21978
Install the May 2022 SU and run /PrepareDomain or /PrepareAllDomains - See: https://aka.ms/HC-May22SU
I have install the KB5015321 (what replaces the May update) and run PrepareAllDomains without problems.
Build Number: 15.00.1497.040
End Of Life: 04/11/2023 - Please note of the End Of Life date and plan to migrate soon.
Warning: Running commands from a different version box can cause issues. Local Tools Server Version: 15.0.1473.3
Exchange IU or Security Hotfix Detected:
Security Update for Exchange Server 2013 Cumulative Update 23 (KB4536988)
Security Update for Exchange Server 2013 Cumulative Update 23 (KB5000871)
Security Update for Exchange Server 2013 Cumulative Update 23 (KB5001779)
Security Update for Exchange Server 2013 Cumulative Update 23 (KB5003435)
Security Update for Exchange Server 2013 Cumulative Update 23 (KB5004778)
Security Update for Exchange Server 2013 Cumulative Update 23 (KB5007011)
Security Update for Exchange Server 2013 Cumulative Update 23 (KB5010324)
Security Update for Exchange Server 2013 Cumulative Update 23 (KB5015321)