Loop has a restriction of only 100 iterations. The operation you are intending to perform inside the loop is not very clear. Can you let us know what is the error that you faced?
If your intent is to revoke the access profiles assigned to the user, you can achieve this by recursive workflow. But, it has its limitations as well. Take a look on the below interesting post from Collin on Recursive workflows.