Complete stab in the dark based on (incomplete) knowledge about other animals, not snakes in particular, so don't take this is as fact...
That having been said, it rather resembles an auto-immune condition, where the body begins attacking part of itself, apparently in this case they eyes and skin (although the problems could of course go way deeper then the surface)
Alternatively could it perhaps be an allergic reaction? Did you introduce anything new, or use any new product (disinfectant, sealant) into the enclosure before you first noticed the symptoms? It could even be a new product on yourself (soap, hair products, laundry detergent... even something in your clothes), or in the air in your home (air freshener, scented candles). His food or something on it could also be a consideration. Otherwise, it could be an allergic reaction to a parasite, or to a non-parasitic bug that got in/around his enclosure.
Or I could be completely wrong. Only way to know for sure is to go to a vet for an autopsy, but sometimes even then a cause cannot be determined for definite.
And I'm very sorry for your loss