Rehan,
Like Bernhard said check below SAP Notes which will help you to fix indirect role assignment and removal issue further.
1816508 - PFCG/PFUD: Deletion of indirect role assignments fails
1673833 - PFCG: Error in user copmparison of a composite role
1416149 - Role lock when changing user assignments
Regards,
RK