I had chicken pox as an adult just before getting the diabetes diagnosis. I did see a paper from Japan that cited this virus as a possible trigger for the immune system to sort of go into overdrive and end up killing off beta cells.
I have also read a paper from Oxford University that talks about high blood glucose “reprogramming” beta cells causing them to stop producing insulin :
Oxford Research reveals high blood glucose reprograms the metabolism of pancreatic beta-cells in diabetes.
www.ox.ac.uk