Hi @Vasiliy_Naumov and welcome to the community forum!!

Firstly, could you confirm if you have seen similar issues before the upgrade has happened or is this the first time you are seeing the issues?

There are few questions here:

  1. For a PSA architecture, when one data bearing node is shut down, the other data node becomes the primary. This is expected. But could you help in understanding, what is meant by application is not working?
    As mentioned in the documentation for PSA architecture,

If one data-bearing node goes down, the other node becomes the primary. Writes with w:1 continue to succeed in this state but writes with write concern "majority" cannot succeed and the commit point starts to lag. If your PSA replica set contains a lagged secondary and your replica set requires two nodes to majority commit a change, your commit point also lags.

If the replica set members have been gracefully removed from the deployment, it should not have any role in creating the issue.

Could you confirm if you are facing the issue in the PSS architecture? Also, please note that setting to w:1 would make the rollback to exclude the writes if the primary restarts before the write operation is completed.
Data can be rolled back if the primary steps down before the write operations have replicated to any of the secondaries.

Regards
Aasawari