Previously i was facing the issue while connecting to the vpn using windows 10 and i was getting the below error
Solved: l2tp connection failed because the security layer how to resolve windows 10.
This error i solved by uninstalling the Windows Update: KB5009543 and restart after this and after this i was able to connect to the VPN.
Windows Update: KB5009543 This update was given to fix Japanese character issue in text editor and added some additional security level features in this fix.
Furthermore to study this document can be helpful about this issue
https://www.howto-connect.com/fix-vpn-kb5009543-windows-10/