I have been using the DbaTools module in Powershell for years with no issue. However this morning I can no longer connect to any database due to the error An attempt was made to load a program with an incorrect format. (0x8007000B). I did some research and I saw several posts about it being an issue with 32-bit compatibility with 64-bit. At the moment it appears to only affect my local machine, and our automated scripts are running normally on their dedicated servers.
After rebooting and trying again I got this error message, which did not appear before:

The dbatools.io/newdefaults URL in the message redirects you this article. I do not have permission to create certificates on my local machine, and changing the defaults with Set-DbatoolsConfig did not fix the error.
The dbatools version was 2.1.4. Using Powershell 7.3.8 gave me the error. I reverted back to dbatools 1.1.42, but am still getting the same error. Using Powershell 5.1 with dbatools 1.1.42 I am able to connect perfectly fine.
Has anybody else encountered this error, or knows of a solution?