I don't think you can make edits directly to the RB4 cluster encrypted .bin. I think that part of what the encryption does is to scramble locations within the .bin for some (if not all) of the data. DEF errors likely caused by changing data within a portion covered by checksum and/or encryption mask.
To change data such as the SKC more likely you need to;
1)set the cluster to decrypted mode
2)download the decrypted .bin
3)make edits in the decrypted .bin
4)correct checksums in the edited .bin
5)write the decrypted .bin back to the cluster
6) set cluster back to encrypted mode
Problem is that I have no idea how to perform the checksum correction needed for RB4 cluster. Example documentation of checksum for other VW clusters (not RB4 specific!) can be found at;
https://github.com/gmenounos/vwcluster/blob/main/Checksums.md If anyone knows of a program or process available to perform RB4 checksum or if there is a mistake in my overall process (above), please speak up!