Could be a number of variables, and the fact you say it conditions out as the beer is stored suggests to me its something to do with your fermentation. I have a few suggestions;
1) Water - whats your tap water like ? can you happily drink a glass without gagging, no overt taste of chlorination, mouthfeel clean and inoffensive ? Some tap waters feature chemicals or natural components that can produce off flavours inh the finished brew, but they do tend to be persistent and dont fade with conditioning. A cheap way to cut this variable out would be to make your next kit with mineral water - the Tescos Ashbeck is a well known quanitity in this respect, and will provide you with 5L PET containers you can use as fementers for smaller brews.
2) Yeast - Kit yeast can be a bit... naff. And often they add generic packs for multiple kits so the fermenting charecter might not be idea for what you're making. This is easily adressable - there's an amazing range of dried yeasts available these days, so do yourself a favour and pay a few quid extra on your order to buy something else that matches the style and what you want better.
3) Temperature - You have that base somewhat covered with your aquarium heater, but overheated ferments produce funky beers and off flavours - make sure you're watching those temps carefully and even consider fermenting 1-2 degrees colder than kit instructions. I made most of my ales between 18-20 degrees.
4) Sanitation - a lot of what they sell for brewing sanitation at the cheaper end are based on stuff like PBW that need careful rinsing - its easy to leave residues that can leave off flavours. Id suggest (if you arent already) using something like Chemisan (phopsphoric acid based) or home made No-Rinse bleach sanitiser, the instructions for which you'll find here with a search. Im a n0-rinse bleach user myself so I know it's clean and effective.
5) Time - As you say, time helps your issues as yeasts are good at cleaning up after themselves. Yep, it's hard to keep your hands off for 6 weeks or longer but that can easily be countered by brewing twice as often 😂 you have a justification to now !
Gonna add no. 6 - I saw you mentioned sediment. Sediment can be bad - carrying lots of off stuff you wont want in the beer. Once you've fermented out, give it a few days to settle and once you're happy its as clear as its gonna get, transfer your beer with a syphon to another fermenter or vessel - be very careful not to stir the trub/sediment up, even sacrificing an inch of beer if necessary. This allows you to then bottle clear, clean beer and use batch priming which is cleaner and more accurate, leading to a more uniform brew carbonation. Too much sediment forming in the bottle is also a sign you need to allow the beer longer to drop after fermentation