Starting from version 1.20.60, custom blocks become invisible if there are too many of them in the chunk. If you remove some of them, then the problem disappears. Also this problem does not exist on older versions such as 1.20.50