This very short video will explain the bug more easily:
https://youtu.be/QDk2hGHEHf4
So, if you place a piston next to you while being in a specific position, the piston will become invisible in the inventory, and will reappear on a surface when you right click again.
Related issues
Comments

This is a duplicate of MC-95720