がなくなって

… is gone; … has run out

→ が
phrase Uncommon #20,140
… is gone; … has run out が marks what is gone or has run out. なくなって is the connective form of なくなる, meaning to become absent or run out; it can also describe a feeling or interest fading away.
JA: 牛乳がなくなってしまいました。
EN: We've run out of milk.

お金がなくなってきた。

I'm starting to run out of money.

私は自転車がなくなっているのに気づいた。

I noticed that my bicycle was gone.

電池がなくなってきてるから、うまく動かないんだ。

It’s not working properly because the battery is running low.

命がなくなっても、黙っています

Even if I die, I’ll stay silent.

時間がたつにつれて、人々はそのことにだんだん関心がなくなってきた。

As time went by, people gradually lost interest in it.

彼は罪の気持ちがなくなっていった。

His sense of guilt gradually faded away.

数学には関心がなくなっていった。

I gradually lost interest in mathematics.

誰にももう言うことがなくなって、会合は終了した。

With no one having anything left to say, the meeting came to an end.