failed with output

We are using 2022.1.22 for our Mobile Game.
But that version of unity supports Android Billing Library 4.0.
So we decided to upgrade our Unity version.
But, we are having error while making build for Android.

Building Library\Bee\artifacts\Android\d8kzr\ failed with output:
ld.lld: error: invalid argument: -Wl
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

We tried both 2022.2.21 & 2022.3.7LTS version but facing the same problem.

Looking forward to your guidance to fix this issue.