Welcome to Android Central, we're going to need additional information so to reply to this thread you will need to create an account and become a member.
So any external device and it times out, is it at 15 or 30 minutes? What is your sleep setting? If you leave the phone screen on how long have you set the screen timeout for? Settings>Display>Screen timeout. Is it either 15 or 30 minutes and that's when the call is dropped?
You have a Galaxy device, check the device health/device care tab in your settings, then battery. In that list of apps is anything related to phone calls or Bluetooth that you've put to sleep? With my S10 my Screen timeout is set to 10 minutes and about 30 seconds or so after the screen times out the device goes to sleep.
Initially I felt it was a bad button or something on the headset but since you say it happens with different headsets and wired and wireless the devices may not be the issue but something seems to be timing out. You specifically have tried this with both or at least multiple devices and it happens with anything external, correct?
What have you tried? I would like you to try a headset call with the device in Safe Mode. Safe Mode would prevent apps that you don't specifically open from starting or running in the background, so this would rule out a battery saver or anti-virus app, which I hope you aren't using. Are you using any performance enhancing apps?
Are you doing anything on the phone, besides talking, while using a headset, playing games, browsing, watching vids?