Welcome to bimmerfest! Check out the e46 subforum for all your questions pertaining to your car.
Always use at the very least the minimum required octane for your vehicle. I always try to use shell vpower 93 in my car. Although I doubt the gas caused this issue, over time using lower octane will damage your vehicle.