Swift optimization issue in macOS Sequoia

I'm using this library for encoding / decoding RSA keys. https://github.com/Kitura/BlueRSA

It's worked fine up until macOS sequoia. The issue I'm having is the tests pass when in Debug mode, but the moment I switch to Release mode, the library no longer works.

I ruled this down the swift optimization level.

If I change the Release mode to no optimization, the library works again. Wondering where in the code this could be an issue? How would optimization break the functionality?

Swift optimization issue in macOS Sequoia
 
 
Q