Hello @masouddarvishi1992,
Thank you for contacting Rank Math support.
Please note that Google treats the 410 errors the same as the 404 errors and can report them as 404 errors in GSC.
The 410 status code informs them that the URL no longer exists, but they can still show it as 404 in the indexing report: https://support.google.com/webmasters/thread/7471925/google-is-not-showing-410-headers-keeps-saying-urls-have-a-404-status?hl=en
Hope that helps.