You need to note that it all depends on the novel, you don't absolutely need to think about the solution of every problem in a completely functional kingdom if your story doesn't explore that part in depth. It only needs to sound logically convincing even though the territory might note make sense in some aspects. Because the truth is that even most long running novels don't completely explore their world system in complete depth. You can just leave a part out that you can't force into making sense if that isn't relevant to the story and most likely wouldn't be explored or revealed.
But if you can still need to fix those problems then you can just twist your narrative or lore history to give your territory logical backing. for example, if there are resources needed or protection from something needed in your territory and you can't find way to give that logical flaw a fix then you can just slightly the history of your kingdom to something like: The current location of the kingdom solves these problems (if the kingdom needs resources then the land is uniquely abundant in that resource, and if the territory needs protection then the terrain itself bars and guards against the foes)
This might make the setting feel plot convenient but if you add a history like; -the kingdom was established in this exact location because it had this and that benefits- then it will instead feel the most logical.
I will give you my own example as reference:-
when I was doing a logic check against my world map then there was this inconsistency. The Empire dominated almost the entire south. but the south generally have most resources and fertile lands, It didn't make sense for an empire that exist in the south to be stuck in a deadlock with other nations. The empire should be overwhelmingly strong due to it's location.
I added a setting that there are a lot of political conflict between powerful noble families of the empire and the imperial family so the empire can't act with complete unity and this reduces it's power.
But this setting felt too narratively convenient so I added a history to make it all logical; There were previously a lot of small kingdoms in the south because of it's abundant lands and rich resources, one kingdom became unusually powerful and began conquering the the other nations, which eventually created the current kingdom. The royal families of the conquered kingdoms were accepted as nobility at the time since the new empire had too much territory but no governing body and the royal families could quickly stabilize the masses of their own territories. and these noble families are those past royals that were forced to bend their knee before the empire in the past and are still resentful towards the imperial family.
Now everything made sense and there were no settings that just felt convenient.
So the setting for my novel is like this:
Many millennia into the future. Human civilisation fractured into multiple large territories. The large countries had 100 to near 4000 super worlds (planets with population above 6 billion). This is not counting minor worlds, space stations, outposts, drifting colony ships, etc.
Protag is a very trashy person. His mom is trash too. Cruel, arrogant, greedy nobles. After a failed attempt to kill protag's siblings from another consort, he and his mom were kicked out in disgrace. All the people they offended ensured the mother and son lived a hellish life before the mom died in a winter. The survived protag had a change of heart after years of living outside and he regretted his and his mom's past actions so he tried to redo his life.
Typically, a purposeless loser tried to live like a decent person while wrestling with his regret. Long story short, he met and made friend with a bio-commodity (humanoid creations for entertainment and labour purposes). He wanted a purpose to live and the bio-commodities wanted freedom. That's the gist.
Some special thing in this universe. New intervention of divine demonic entities to the human civilisation (not to the point of physical manifestation but they can empower some worshippers to become building bursters).
Another special thing is rifts to other planes where rift creatures come to wreck havoc on the real universe.
Going through the rift and training against otherworldly creatures allow one a chance of awakening special power.
The last anomaly is objects from other worlds pop irregularly into the real universe through one-way short-life unstable portals.
Major challenges for my protag are 1) he can't go under radar very easily, 2) no supernatural intervention can topple a space fleet, 3) his special abilities from his demonic entity and rift talents are mid so direct independence or establishment of colony is very dangerous, 4) protag doesn't see himself as something worth the respect and 5) people with major power see protag and his bio-commodities as doormats or bottom feeders.
Most of the issues have solution pointing to being stealthy but it is very difficult to do so in a universe where there are a lot of control to not let unclaimed profit slip through the fingers. If you have something precious but no ability to protect your interest, others will either steal or force you to agree with a bad deal.