Sniffing SSL/TLS connections with BURP
If you have a rooted device with Magisk it is IMHO much simpler to just disable SSL/TLS certificate checking and pinning for traffic sniffing:

Install Xposed for Magisk and the Xposed module Trust me already