The Guided Access passcode is treated just like a restrictions passcode.
As the following article states:
"If you forget your Restrictions passcode, you need to erase your device then set it up as a new device to remove the Restrictions passcode. Restoring your device using a backup won't remove the Restrictions passcode."
Use parental controls on your iPhone, iPad, and iPod touch - Apple Support