Hello Akash,
As I understand correctly, you are trying to invite a user but you're getting the message back that this user already exists in your directory as a non-guest user.
It could be possible that the user is already created as a contact in the Exchange admin center. Also have you tried looking inside Entra ID using the user's email address?
Let me know!