add 1 fresh ap into either hp or mp edit: did not look long enough to see that what I wrote above is not the issue. I'm guessing the game programmed the ap reset in such a way that it locks when an ap reallocation could bring you over the 30000 cap, with a warrior for example, with your current hp you would be able to go over 30000. This is just my speculation though, as I have not looked into any source code of the game.
This screenshot is just to deduct a little bit of STR to the MP above, but still there is no way to deduct any point add it to HP