Hi FlameGo. Thank you for playing my game!
So yeah the glitch bug is very annoying and I've been trying to fix it or make it more stable but it just doesn't work well.
For the shrink part, it's an intended gameplay mechanic. The red cube will shrink or expand due to the distance to the surface.
Let me know if you have any more questions.