We are using Episerver CMS 10 .
On a page we have total 32 blocks and we have not set any maximum limit for blocks on that page
in code but still if we add a new block on that page it gives 401 error (Unauthorized error).
Does any other factor is causing such issue ?
So after you add the block hitting the page gives you a 401 status code? Was there nothing in the log? It's going to be hard to solve with so little to go on!
Off the top of my head, I can't think of a reason why this would be related to the total number of blocks used on that page. Are you sure it's not related to that specific block?