We’ve all been there. I find watching someone else clear it does help, especially if they can talk you through it. Also, if you can find an area with similar obstacles, not necessarily together and can happily clear them individually then you should be on your way. Unfortunately, as others have said, there’s a lot of mental gremlins in mountain biking. It does sound like you’re building this one up, sometimes it’s better to go and ride something else for a few days then come back once you’ve calmed down a bit.
On the bright side, you’ll be surprised what you and your bike are capable of when the confidence is there. I’m sure you’ll crack it but no rush 😀