Sounds like your key might need a new battery. But to answer your question- there is no cheap way to get new key. They come from the factory and attached to your car, key fobs are not re-usable so no used market.
https://f15.bimmerpost.com/forums/sh....php?t=1589391