I could have not eaten that is possible with the meaning I could have chosen not to eat that , but the full form with the verb choose is the better way to say it. That's not the same as I could not have eaten that , which means I would not have been able to eat that . Your grammar books are focusing on the meaning that would most likely come to mind, and giving you the proper word order for only that meaning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.