Keep the receipt or photograph the error message and note the time, location, and amount of the machine.
Steps
Contact your bank and file a complaint about the unrestricted cash deposit, obtaining a reference number.
Do not make a second deposit as a test before reporting the initial issue.