SIM popup messages keep the screen on indefinitely (Samsung A30s)
Download Automate app and make a flow like this..

Allow the permissions And then configure it like this. Notice the option &quot;When UI element appear&quot;.

Then click on record. Now, make a call and end/hang up it so that you get the dialog-box. Click on Cancel in the dialog box, see the details and try to understand if the interaction has been recorded. If yes, then click OK.
What it does is that it automatically clicks the Cancel button as soon as it appears on the screen.
I haven't received any dialog box for years so I don't know if that's gonna work. If it doesn't, just see the options from + icon and try to do something else. There are like a hundred options. If that too doesn't work then let me know.