I’m pretty sure the Mega uses the ICSP header for its SPI communication which is incompatible with the current version of the CAN shield since it uses the Digital IO (Uno pins 13 to 11) for its SPI. Try using jumper wires instead of stacking the shield, it should work.