Thank you very much for your advice. You were exactly right.
The root cause of the issue was indeed the missing "-DPTMW_OpenSSL=3_0" option in my CMake configuration.
After adding "-DPTMW_OpenSSL=3_0 -DPTMW_Log=Verbose" and rebuilding the MW, the problem was completely resolved. Here are the results:
Executing Step 6 no longer throws any errors. It successfully outputs "App :INFO :mem=17196" as expected.
I also confirmed that even when setting the log level back to my originally intended configuration ("-DPTMW_Log=Default" instead of Verbose), the application still executes perfectly and outputs "App :INFO :mem=17196".
I will mark this topic as resolved.