This happens commonly because, somehow the iTunes Library.itl file got set as read only.

you’re able to fix this by doing the following steps.

These steps will set the iTunes folder where they are readable again.

iTunes Library itl file error

This command may take a few minutes to run.

Once complete, have a go at open iTunes again.

iTunes Library itl file Read Only Check Box

iTunes Library itl file error