I have the following manim code [from manim import *
import numpy as np
import os

class SphereVolumeProof(ThreeDScene):
    def construct(self):
        self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREES)

        # Create axes
        axes = ThreeDAxes(
            x_range=[-3, 3, 1],
            y_range=[-3, 3, 1],
            z_range=[-3, 3, 1],
        )
        self.add(axes)

        # Create sphere
        sphere = Sphere(radius=2, color=BLUE, fill_opacity=0.2)
        self.play(Create(sphere))
        self.wait(1)

        # Set up slicing
        num_slices = 20
        slices = VGroup()
        R = 2  # Radius of the sphere

        # Slicing the sphere with disks
        for i in range(-num_slices, num_slices + 1):
            z = R * i / num_slices
            radius = np.sqrt(R ** 2 - z ** 2)
            disk = Circle(
                radius=radius,
                color=YELLOW,
                fill_opacity=0.5,
                stroke_width=0
            )
            disk.move_to([0, 0, z])
            disk.rotate(90 * DEGREES, axis=RIGHT)  # Correct orientation
            slices.add(disk)

        # Animate the slicing
        self.play(LaggedStartMap(FadeIn, slices, lag_ratio=0.1))
        self.wait(2)

        # Show infinitesimal disk
        dx = 0.1
        z = R / 2
        radius = np.sqrt(R ** 2 - z ** 2)
        disk_infinitesimal = Cylinder(
            radius=radius,
            height=dx,
            direction=UP,
            fill_opacity=0.7,
            color=RED
        )
        disk_infinitesimal.move_to([0, 0, z])
        self.play(FadeIn(disk_infinitesimal))
        self.wait(2)

        # Explain the disk area
        area_formula = MathTex(r"dV = \pi r^2 dz")
        area_formula.to_corner(UL)
        self.play(Write(area_formula))
        self.wait(2)

        # Show the relationship between z and r
        relation = MathTex(r"r = \sqrt{R^2 - z^2}")
        relation.next_to(area_formula, DOWN)
        self.play(Write(relation))
        self.wait(2)

        # Integrate to find the volume
        volume_integral_latex = r"""
\begin{align*}
V &= \int_{-R}^{R} \pi r^2 dz \\
  &= \int_{-R}^{R} \pi (R^2 - z^2) dz
\end{align*}
"""
        volume_integral = MathTex(volume_integral_latex)
        volume_integral.next_to(relation, DOWN)
        self.play(Write(volume_integral))
        self.wait(2)

        # Compute the integral
        volume_result_latex = r"""
\begin{align*}
V &= \pi \left[ R^2 z - \frac{z^3}{3} \right]_{-R}^{R} \\
  &= \frac{4}{3} \pi R^3
\end{align*}
"""
        volume_result = MathTex(volume_result_latex)
        volume_result.next_to(volume_integral, DOWN)
        self.play(Write(volume_result))
        self.wait(2)

        # Highlight the final result
        box = SurroundingRectangle(volume_result, color=GREEN)
        self.play(Create(box))
        self.wait(3)

        # Clean up
        self.play(FadeOut(slices), FadeOut(disk_infinitesimal), FadeOut(sphere))
        self.wait(1)

        # Show final sphere with volume formula
        sphere_final = Sphere(radius=2, color=BLUE, fill_opacity=0.5)
        self.play(FadeIn(sphere_final))
        final_formula = MathTex(r"V = \frac{4}{3} \pi R^3")
        final_formula.to_corner(DR)
        self.play(Write(final_formula))
        self.wait(3)] and there is something wrong with the way the LaTeX is written because I get the following error [ValueError: latex error converting to dvi. See log output above or the log 
file: media\Tex\f9ee14dc06d86f28.log]. I have tested manim with a different small piece of LaTeX and it ran fine, so there must be something wrong with the way it is written in the code i just provided. Can you please fix the code so that it will work.