I'm having this issue too, everytime I use the replace command it yields an error, even if I'm just copying and pasting the same one I found online.
Probably due to new lighting rules. Try moving torches and other light sources and see if they spawn then.
Sorry here’s the info:
Steps to reproduce the issue: place a shelf in 25w32a
Expected result: The Items should be centered as in 25w31a
Actual result: It’s not