Here are two ways to help you uninstall the patch:
1.Uninstall from the Settings app. Select Start > Settings> Update & Security> Windows Update, > View update history. Locate the KB5031471 update and select Uninstall update. Then, follow the on-screen instructions.
2.Use the command prompt to uninstall. Open Command Prompt as an administrator, and then run the command:
wusa /uninstall /kb:5031471 /quiet /norestart
Hope it is helpful for you.
Kind regards,
Lei