EDIT
I fixed it. It was a data pack that I installed a long time ago, not a bug.
So in one of my 1.14.4 worlds all my barrier protections disappeared. Every time I would place a barrier block it would disappear right away. That fast, that I didn't get to see the red sign or whatever it is. Even if I upgrade this world to a newer version of mc that glitch is still there. All my other 1.14.4 worlds don't have that problem.
Any help would be appreciated.
What is your 'Particles' setting in Options > Video Settings set to?