@Fahima Chowdhury Are you still seeing this issue? let me know.
Confirm that your account indeed has both the Owner and User Access Administrator roles at the correct scope (e.g., subscription, resource group, or resource level).
Sometimes, conditional access policies can restrict certain actions. Check if there are any policies that might be affecting your ability to add role assignments.