I didn't run your code, but I can say that the error occurs because your code creates a static field initialized at class loading time, which can cause issues with mocking frameworks and unit testing. The static initialization happens before test methods run, making it difficult for mocking frameworks to intercept and mock the BlobServiceClient creation.
Try Lazy initialization and see if that works.