Thank your for the sharing.
You didn't activate the FDCAN2 IRQ:

I'm attaching your project (modified) where FDCAN2 is receiving these two bytes.
This is a screen shot of the debug session, the bytes 7 and 8 are well received with FDCAN2 and a counter counting the number of the reception I've added in the example:

Another thing to add:
In the sending operation you didn't wait for the Tx FIFO to be empty which will cause a send error.
I've added it as the following:
while((hfdcan1.Instance->TXFQS & FDCAN_TXFQS_TFQF) != 0U); // wait for Tx FIFO to be empty
status = HAL_FDCAN_AddMessageToTxFifoQ(&hfdcan1, &TxHeader1, TxData1);
if (status != HAL_OK)
{
Error_Handler();
}
}
Don't forget to fit the jumpers JP6 and JP7 to connect the CAN terminating resistors (120ohm) on the board.
A recommendation before running the example I shared, please update to the latest version of STM32CubeMx V6.13.0.
Hope that helps.
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.