BNO055 IMU and SN65HVD230 CAN transceiver

Hi, I am working on a project using the above IMU and CAN transceiver with an Arduino Due. A lot of the time, the IMU works great with the CAN. But, sometimes, the IMU acts disconnected on startup even when wiring hasn't changed. Some other times, it will disconnect about 5 minutes in. I have attached my code. Here are the links to the libraries:

Due_project.ino (8.89 KB)