Compiling error after update

I have a compiling error on ESP home after doing the newest update.
Running Raspberry pi4 with argon m.2 case with 180gb and mariaDB.
everything was fine before the update, was flashing some esp32 yesterday and now this. ( I’ll post logs at bottom ).
Everything I can find is a million post bitching and a few people saying reinstall (esphome) which I have it did not work, no real answers and a bunch of “try this, but I haven’t had the problem but try it anyways…” nothing has worked.
From what I gather the common theme is on pi 4 HA image its 64bit os and some toolkit package it needs to compile is only 32bit compatible but somehow somewhere HA has no option to change this and no control to install the package for 32bit from what I have read so far. Still no fixes from the forum post I’ve read that actually work.

INFO Reading configuration /config/esphome/aq-2.yaml…
INFO Generating C++ source…
INFO Compiling app…
Processing aq-2 (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 3.3.2)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
Dependency Graph
|-- 1.2.2
|-- 1.0
|-- 1.0
|-- 1.0
|-- 2.1.0
| |-- 1.2.2
|-- 1.1.0
|-- 1.0
Compiling /data/aq-2/.pioenvs/aq-2/src/esphome/components/api/api_connection.cpp.o
cc1plus: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
Compiling /data/aq-2/.pioenvs/aq-2/src/esphome/components/api/api_frame_helper.cpp.o
cc1plus: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
Compiling /data/aq-2/.pioenvs/aq-2/src/esphome/components/api/api_pb2.cpp.o
cc1plus: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
*** [/data/aq-2/.pioenvs/aq-2/src/esphome/components/api/api_connection.cpp.o] Error 1
Compiling /data/aq-2/.pioenvs/aq-2/src/esphome/components/api/api_pb2_service.cpp.o
*** [/data/aq-2/.pioenvs/aq-2/src/esphome/components/api/api_frame_helper.cpp.o] Error 1
*** [/data/aq-2/.pioenvs/aq-2/src/esphome/components/api/api_pb2.cpp.o] Error 1
cc1plus: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
*** [/data/aq-2/.pioenvs/aq-2/src/esphome/components/api/api_pb2_service.cpp.o] Error 1
========================== [FAILED] Took 3.16 seconds ==========================

HA Version 2022.2.2

Not a version. Please be specific.

You can do this here: