Be sure you are using GUID for the partition scheme and formatting the drive using Mac OS Extended, Journaled. Do not use APFS on the backup drive if you are using Time Machine.
Run First Aid on the internal drive and the backup drive.
Repair the Drive for El Capitan or Later
- Restart the computer. Immediately, at or before the chime hold down the Command and R keys until the Utility Menu appears.
- Select Disk Utility and press the Continue button.
- Then select the indented (usually, Macintosh HD) volume entry from the side list.
- Click on the First Aid tab in the toolbar and wait for the Done button to activate. Click on it, then quit Disk Utility.
- Select Restart from the Apple menu.
If the problem is with your internal drive then verify you have a problem by trying to copy one file to the backup drive using the backup utility you were using when you got the error. What error do you get, if any, for a single file copy?