Here's why they don't form heavier elements:
* Lower temperatures: Red dwarfs are cooler than our Sun. This means their core temperatures aren't high enough to initiate the fusion of helium into heavier elements like carbon and oxygen, a process called triple-alpha process.
* Lower pressures: The lower mass of red dwarfs means they have weaker gravitational pull. This results in lower pressure in their core, further inhibiting the fusion of heavier elements.
Therefore, the primary elements produced by red dwarfs are hydrogen and helium.
While they may fuse trace amounts of lithium and beryllium, the amount is insignificant compared to the hydrogen and helium they produce.