For X (Twitter), just go to Settings and Support > Settings and Privacy. Then select Security and account access > Security.
The solution here is very straightforward and simple: completely turn off notifications for anything about which you don't need to be urgently informed. In practice, this just means going into ...