RB5009 VPN problem

I'm having an issue. For several years, we used the RB3011 in our company, and everything worked perfectly. We decided to upgrade a little and bought new RB5009 devices to replace them. We transferred all the configurations, manually checked everything, and it all looks correct. However, we encountered some kind of problem with the RB5009 devices regarding VPNs.

SSTP VPNs can no longer connect to the remote side. If we use L2TP, the tunnels are unstable, they reconnect and drop. When they do establish, connecting via SSH works, but when we attempt a WinBox connection through the tunnel, it doesn't work, as if the remote side doesn't exist.

All devices were upgraded to the latest ROS version. When we tried to downgrade the RB5009, the stability on L2TP improved, but it was still performing poorly.