ESP32 crash when using Serial1 and Serial2

I got this idea here:

If I use it without the rest of the code(so I keep only the DFPlayer parts) it doesn't have any issues. I need most of the available pins of the ESP and won't ever need Serial1's RX pin.