I have the same issue. I play on two servers. On one the villagers are behaving correctly. On the other they are not. I am very familiar with villager behavior in 1.14.4 Release. To test I placed 15 villagers 200 blocks away from my main base or any other server activity. I gave them a workstation and then took it away. I waited 3 Minecraft days and they have not reverted to no profession.
I have this same issue playing on a survival server. It started with just 2 slots but now it is 4. I'm using Windows 10 Java.
Fixed. I disabled the Xbox game bar and the problem is gone.