The relay module goes crazy after connecting the power supply

One last thing:
Setting the pin HIGH turns the relay OFF NOT ON

Also showing the circuit diagram from the website is not much help especially since it is wrong and does not actually show how you have everything connected as shown in your video