How to setup Arduino to 8mhz properly?

Don’t double post !!!!!

You need to post a circuit diagram - sounds like you are powering stuff from the Arduino itself , a common cause of problems