So I recently cloned my windows system to a bigger ssd, reenabled bitlocker then tried to enable autounlock on a second data drive but it gave me the following error

ERROR: An error occurred (code 0x80070017):
Data error (cyclic redundancy check).

Must be something wrong with the drive right? Chkdsk... nope the drive is fine.

Turns out you need to remove the existing autounlock keys first that migrated from the previous system drive but are no longer valid for the newly bitlockered system. So open an adminitrative powershell or command prompt and run

manage-bde -autounlock -clearallkeys C:

Optionally remove all the old external key(s) from the data drive

manage-bde -protectors -delete -type externalkey F:

F: being the data drive. Or remove specific external keys by listing them first

manage-bde -protectors -get -type externalkey F:

Then deleting the ones you don't need anymore by it's id value

manage-bde -protectors -delete -id "{DBB1A11E-9F5C-41B8-BD79-8A60E27F6369}" F:

After that you can enable auto unlock on the data drive without error.