Help needed arduino mega keep resetting in a weird way

My arduino mega keep resetting itself when i connected to PC1 via usb but it does not happen when i attached to PC2 can anyone please point me out what is wrong both PC have the same amount of RAM (8GB) and nearly every component are identical except for the mainboard

Different motherboards will likely have different chipsets and therefore different device drivers which have different bugs.
Try putting a USB hub in between PC1 and the Arduino. It might alter the behaviour.

ok thanks a lots for quick reply will try what suggest and post the result later