If you forgot the passcode on your iPod touch, or your iPod touch is disabled, read this support article --> If you forgot your iPod touch passcode - Apple Support
Steps:
1. With the device disconnected from a computer use the model-specific instructions in the links above to shut down the device.
2. Connect it to a computer with Finder or iTunes (Mojave or earlier, or PC).
3. Restart into recovery mode (black screen with a cable indicating attach to computer).
4. When prompted, click "Restore" to erase data & settings, and update system software. May take some time.
5. Set up your device ( Set up your iPhone or iPad - Apple Support ). Partway through you are offered the opportunity to restore your data and settings from a backup, or you can do this at a later stage ( Restore your iPhone, iPad, or iPod touch from a backup - Apple Support ). Even if you have no backup, if you were using some iCloud services to sync items such as Contacts or Photos those may reappear once you sign back into your iCloud account --> Set up iCloud on your iPhone, iPad, or iPod touch - Set up iCloud on all your devices - Apple Support
'If your computer doesn't recognize your iPhone, iPad, or iPod' click here --> If your computer doesn't recognize your iPhone or iPad - Apple Support