No, "became" is correct. "Over the next few years, we had become best friends" does not seem a likely thing to say. However, "Over the previous few years we had become friends" is possible.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.