Lightroom Classic catalog FAQ: ADOBE
and you will see:
Can I store or share a catalog on a network?
No, you can't store catalogs on a network but you can store or share your photos on a network. Smart Previews let you edit your photos in Lightroom Classic even when you are disconnected from the network or when your computer is disconnected from the drive that has your photos.
Storing the catalog on a NAS will eventually corrupt the catalog. Plenty of postings in this community on that.