の変で変な

Nonstandard as written; likely intended to mean “because of a change in …, strange …”

→ の
phrase Rare #23,409
Nonstandard as written; likely intended to mean “because of a change in …, strange …” 「変」 by itself does not normally mean “change” in this construction. A natural version would use 「変化」, as in 「環境の変化で変な虫が増えた。」 The example below preserves the requested wording but is not standard Japanese.
JA: 環境の変で変な虫が増えた。
EN: Because of a change in the environment, strange insects increased. (Nonstandard Japanese wording.)

光の変で変な影が見えた。

I saw a strange shadow because of the lighting.

体調の変で変な夢を見た。

I had a strange dream because I wasn't feeling well.

環境の変で変な虫が増えた。

Due to environmental changes, the number of strange insects has increased.

心の変で変な気分になった。

I felt strange because something in my heart had changed.

気持ちの変で変な事を言った。

I said something strange because of how I was feeling.

時代の変で変な風潮が生まれた。

A strange trend emerged as the times changed.

天気の変で変な雲が出た。

A strange cloud appeared because of the change in weather.

気温の変で変な汗をかいた。

I broke into a weird sweat because of the change in temperature.