The what? is this the adapter for 3.5mm headphones? If so, you don't have to get Apple made dongles. Third parties make them also.
I'd guess the GPs actual problem is lint in the Lightning port though. Pretty common, relatively easy to clean out too, especially compared to USB-C.
Regardless of either, they both have the same fault.
The connector between the phone and the adapter is poor. It could just be a fault with my phone but I have no way of proving this.
I suspect this sounds like a problem with your specific phone. Never had a problem with any lightning accessories myself.
The what? is this the adapter for 3.5mm headphones? If so, you don't have to get Apple made dongles. Third parties make them also.