Problems with the resource group

Hi! Friends with encountered the problem of terraforms and azure cloud .
I keep getting error some resource can’t find group resource . how to prioritize group resource creation
Before all resources and increase the timeout before creating other resources? (because sometimes I see that the resource group has been created but still get errors that it is not found)

i create all resources with modules