Forgotten iOS Restrictions Password/Passcode
There's a tool that can recover the restrictions passcode from a device backup, called Pinfinder. Follow the macOS instructions and download the tool which is a command line binary and it will recover your pin.