5 scripts that do practically the same thing not working after closing the Unity Editor and saving multiple times in all scenes

I am working on making my very own gorilla tag fan game, using tutorials and such. I imported five scripts into the game for enabling and disabling cosmetics for my character, each one doing the same thing for different cosmetics like ChangeHeadCosmetic, and ChangeRightCosmetic, or ChangeFaceCosmetic. After saving in all scenes by going File-Save, and closing my game by doing File-Exit, and then reopening it the next day with the Unity Hub, those five scripts and only those five scripts stopped working and I had to delete and reimport them, and this has happened every single day since. Please help! This is the error I get when I try to remove the script from the button and re-add it: Can’t add script component ‘ChangeHeadCosmetic’ because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.
I also get zero compile errors.

Can you share a few of the scripts in question here? Also where are these scripts located?

here are 2 scripts.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.VR;
public class ChangeRightCosmetic : MonoBehaviour
{
    public string Right;

    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.CompareTag("HandTag"))
        {
            PhotonVRManager.SetCosmetic("Right", Right);
        }
    }
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.VR;
public class ChangeBodyCosmetic : MonoBehaviour
{
    public string Body;

    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.CompareTag("HandTag"))
        {
            PhotonVRManager.SetCosmetic("Body", Body);
        }
    }
}

These are located inside of a folder called cosmetics, that is inside of my scripts folder inside of the assets folder. I also apply the scripts to both enable and disable buttons for my cosmetics, and I just type the cosmetic name into the “Right” section or the “Head” section, etc.

Did you read the scripts? Do you have any solutions? I am pretty much finished with my game and I really need someone to help me.

Try rebuilding the library. I find anytime weird things like this happen, a rebuild can sometimes work wonders.