Why not in prod?
Don't you have 82 GB left for 32,767 empty Databases? 😉
I tried it with 1001 though (on my local machine of course!) and at these 1001 DBs were created successfully.
Interestingly, the NOWAIT option in RAISERROR does not seem to work anymore after approx. 500 loops:
DECLARE @a INT = 0;
WHILE @a < 10000 BEGIN -- WHILE
WAITFOR DELAY '00:00:00.030';
RAISERROR('%d',10,1,@a) WITH NOWAIT;
END -- WHILE
Starting with the output of 500, the messages are getting buffered again (50 messages per flush).