Error handling when another user queries a record after it has been deleted

I use the related actions of the record type to change or delete records. The flow is as follows:
①Click the "Inquire" button from the list (button of record action)
②Click the "Delete" button on the inquiry screen
③The inquired record is deleted.
Suppose that Mr. A and Mr. B are viewing the listings at the same time. In this case, if Mr. B tries to open the inquiry screen immediately after Mr. A opened and deleted the record, an error will occur.
(Error message: An error occurred while applying the context of the related action)
Is it possible to handle this error?
For example, to move to a screen that displays an arbitrary message, etc.
Thanks

  Discussion posts and replies are publicly visible