Hi,
the header file does not distinguish memory partitions for CAN FD and it assumes just 8byte payload.
So when you access MB[1].CS it actually writes/reads MB offset 0x90 and no the correct one 0xC8 which is CS work of MB1 if 64 payload is configured.
So address the correct memory, see Table 43-16 of the RM.
BR, Petr