Carbonprotoss
Make sure to have backups of any important data. You can research the "3-2-1 data backup rule" and decide what you want to do. You shouldn't follow it 100% to perfection unless you have money burning a hole in your pocket.
My gmail accounts kept getting recovery numbers that i did not recognise ...
Reset your passwords, check recovery emails and phone numbers, or any keys/authenticator-apps are yours.
my device was sending out calls and there were drafts of texts that i had not written.
Check Settings > security & privacy > privacy controls > permission manager and double check what apps have access to phone, location, SMS, contacts, etc
Do other weird things happen in your life? Early adulthood is a common time for mental health issues to manifest.
Friend said it was a bug
Yes or hardware/software issue if the phone reboots, shuts-down by itself. (There is the auto reboot feature in the OS)
my linux device is showing signs of being infected now (login screen will require me to login twice if i dont hit enter, cannot timeshift it back to copy of the OS i made when i flashed linux there)
No one would amass resources to make an advanced virus to simply get carbonprotoss to type in their password twice. Where's the money in this? Why would the virus make itself known so obviously? it's better to hide.
Anyway, repair packages or reinstall the OS. See backup comment above. Try to be less paranoid. Save for the government wants to silence you, you aren't being targeted.
dhhdjbd ... hacking does not [work like that.] We do not live in a movie..
This is correct.