While it's from Unearthed Arcana, the Close Quarters Shooter Fighting Style does this.
Close Quarters Shooter
You are trained in making ranged attacks at close quarters. When making a ranged attack while you are within 5 feet of a hostile creature , you do not have disadvantage on the attack roll . Your ranged attacks ignore half cover and three‑quarters cover against targets within 30 feet of you. Finally, you have a +1 bonus to attack rolls on ranged attacks.
You may need to multiclass dip to get a fighting style. If you do, it's worth taking it first for extra proficiencies and proficiency in Constitution saving throws.
Be invisible. Yep, it's yet another way in which being invisible is awesome.
You asked for any magic items that can help you attack without imposing disadvantage. There are a few magic items that grant invisibility such as a Ring of Invisibility and a Cloak of Invisibility but these are powerful (expensive) magic items. There's also, of course, Potions of Invisibility which are probably much easier to come by.
Aiming a ranged attack is more difficult when a foe is next to you. When you make a ranged attack with a weapon, a spell, or some other means, you have disadvantage on the attack roll if you are within 5 feet of a hostile creature who can see you and who isn’t incapacitated.
If you use regular Invisibility, it'll end as soon as you make your attack, so you'll only get the lack of disadvantage on that single attack. Greater Invisibility allows you to overcome this and keep attacking without disadvantage, or whatever else you want to do while invisible.
There are other ways to be unseen, such as obscuring your line of sight with thick foliage, and magical darkness. Some of these can easily be abstracted with hiding depending on the exact circumstances.
As you mentioned, the Gunner and Crossbow Expert feats do this.
Both of these feats grant this, among other things:
When making a ranged attack while you are within 5 feet of a hostile creature, you do not have disadvantage on the attack roll.
Credits: Much of my answer comes from Miniman's answer for the question "Are there any abilities for a Spellcaster to attack with ranged spells in melee distance, without imposing disadvantage?" but I don't believe it is an exact duplicate question.