I believe there aren’t any limitations on how many tasks or subtasks at any level.
Having said that, if a task has over 20-30 subtasks, you should consider converting it to a project, dependant on the case.
And in most cases, one should avoid going more than one level of subtasks deep, otherwise work will get lost in the ‘quantum realm’.
Just my 2 cents