This issue could be due to a slow internet connection. Timeout is set to 30000 ms which is 30 seconds by default. Try increasing the timeout to 60 seconds instead by adding this to to create-react-app.
npx create-react-app <app name> -timeout=60000
This will set the timeout to 60 seconds which will provide enough time to ge the required resources from npm registry for new react app.