Hi,
What sample code do you use? Do you communicate between MCUs FlexCAN modules or with some external device?
It looks either pins are not properly configured or wrong CAN bit timing is used.
A Stuff error must be detected and interpreted as such at the bit time of the sixth consecutive equal bit level (6 consecutive dominant or 6 consecutive recessive levels), in a message field which should be coded by the method of bit stuffing.
Stuff bits produce edges in the bit stream for the purpose of resynchronization.
This all lead for the issue with the bit timing, as I mentioned above.
For the Can bit timing calculation you can refer to a following document;
https://community.nxp.com/docs/DOC-330446
BR, Petr