I feel your pain. I have a horrible cold right now and I’m coughing so hard my ribs hurt. Also, I wheeze myself to sleep. I have no idea where I picked this up. Think I’ll go back to being a hermit; it’s safer. ;-)
There are cough drops/lozenges that will stop bad coughing - in my experience.
Last I had that problem was a long time ago, but learned that the most *expensive* ones in the pharmacy are the ones that work. Put in mouth until coughing stops, and remove - besides being expensive, taste terrible - and save it for later when it starts again. One try lasts hours, for me.
Condolences