It should not be a problem to wait for 1 minute, 5 minutes, 15 minutes or even one hour. As long as you get it correct, your iPhone will be unlocked again and everything is still there. However, if you continue to enter the wrong passcode one more time, you will eventually see the "Connect to iTunes" message or "Connect to computer' in iOS 14 and be locked out of your iPhone forever.