I've had this same problem before. This is some kind of glitch or bug that has already been reported to staff and they should be working on it.
You can make a support ticket using this link: https://manacube.com/support/open
and explain to them what happened, and they will work to get your Exp and/or books back to you.