Video of the issue: https://www.youtube.com/watch?v=ByPzPLBFgwQ
1) Found an igloo with villager and zombie villager underneath.
2) Cured zombie villager (probably not related)
3) Placed lectern next to villager that was already there.
4) Broke block above lectern.
5) Villager started spasming in and out of profession.
(Might be time of day related, as it only occurred during some attempts)
6) Breaking the lectern crashes the game.
I did the same process with the villager that I had cured, but could not reproduce this.
If you break the lectern, the game crashes.
If you place a block above the lectern, the villager stops and does not have a profession.
Duplicate of MC-151079 / MC-151185