Question bad ram stick or motherboard ?

sadeq97

Prominent
Jun 17, 2017
6
0
510
Hello
today I woke up to find my unRAID server is completely frozen,
restarted it and it won't post.
when I press the power button, it powers on and after 3 seconds it powers off and on again and the cycle continues until I unplug the power cord.
the ram stick was plugged to slot A1 (I have only one ram stick !), switched the stick to slot B1, now it won't restart like before but all I see is a black screen so it didn't help either.
finally I switched the ram stick to slot B2 and the server worked !
it seems that the problem is with the motherboard but could it also be with the ram stick ?
is it safe to continue using these parts for a few months more or should I replace them immediately ?
specs:
z370-f rog strix, 1x8GB hyperX Fury 2400Mhz
intel core i3 8100