It is floating point imprecision, that caused the buy max cost to be higher than your money, while it should be lower. Float numbers are not very good for incremental games.
Games should either avoid designs sensitive to float imprecision, or use some custom notations instead.
But this is just a jam game, so there is no time to consider this kind of thing.