The state of "Show layer mask badges" is not saved after restarting Photoshop. If I uncheck this option and restart (just close and reopen) Photoshop it reverts back to checked and the masks are shown.
Windows 10 x64
Newest Beta: Adobe Photoshop Version: 25.2.0 20231024.m.2374 4ab9439 x64