Failed to start "Raise network interfaces"

What is the problem?

Installed OctoPrint about two weeks ago and yesterday it suddenly stopped connecting to the WIFI. It works just fine when connected via LAN. On startup it says:
Failed to start "Raise network interfaces"
See systemctl status networking.service for details

When i enter above command i get this:

● networking.service - Raise network interfaces
     Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2024-07-15 02:17:26 CEST; 1h 4min ago
       Docs: man:interfaces(5)
    Process: 258 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
   Main PID: 258 (code=exited, status=1/FAILURE)
        CPU: 13ms

Jul 15 02:17:25 forsenprint systemd[1]: Starting Raise network interfaces...
Jul 15 02:17:25 forsenprint ifup[258]: ifup: /etc/network/interfaces:1: misplaced option
Jul 15 02:17:25 forsenprint ifup[258]: ifup: couldn't read interfaces file "/etc/network/interfaces"
Jul 15 02:17:26 forsenprint systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Jul 15 02:17:26 forsenprint systemd[1]: networking.service: Failed with result 'exit-code'.
Jul 15 02:17:26 forsenprint systemd[1]: Failed to start Raise network interfaces.

What did you already try to solve it?

Checked if the USB WIFI stick is broken, but works with my PC.
Tried to connect it to a different WIFI signal (2.4GHz and 5GHz) by editing the "octopi-wpa-supplicant.txt" file with Notepad++.
Checked for updates for OctoPrint
Did update/upgrade as suggested in this thread.
Followed these steps from this thread:
image

Have you tried running in safe mode?

Yes.

Did running in safe mode solve the problem?

No

Systeminfo Bundle

octoprint-systeminfo-20240715024311.zip (283.5 KB)

Additional information about your setup

Model: Raspberry Pi 2 Model B

Versions:
OctoPi: 1.0.0 (build 2024.06.18.085851)
OctoPrint: 1.10.2
Python: 3.9.2

USB WIFI Stick: Edimax 150mbps wireless 802.11bgn nano usb adapter