I know nothing about P and K though.
Ash is a good source for K if there are no other K-rich fermented dead plants available.
You get a lot of both from coffee grounds so someone might have to drink a lot of coffee.
For Sri Lanka, it was the perfect storm of covid decimating tourism AND overseas demand for their produce.
Without Covid, they might have been able to stay afloat on tourism dollars until the organic farming thing started showing results.
This also affected staple crops like rice which are eaten domestically, effectively forcing the country to start importing food instead of fertilizer.
It's not plausible to move the entire agricultural sector towards luxury exports by government fiat.
.. overnight.
Some countries have managed to pivot towards luxury exports, and indeed this is one of the standard things that the IMF tries to make failing countries do, but it's a multi-decade process.
Beyond that, it's easy to get rid of modern fertilizers, but the tradeoff is significantly lower yield. To make up for the loss of yield, you need more space. Sri Lanka is a small island that is densely populated, so space is at a premium. Yielding less crop for the same money might have worked out if not for the pandemic, except for the fact that they domestically consumed most of their domestic staple goods, exporting the surplus. Now they've resorted to importing.
Perhaps your niches are smaller than mine. Some people regard tea as an indispensable bulk commodity.