5mm Allen and 17mm spanner on drive side lock onto each other like cup and cone setup.
Drive side should have a preload come that is then fastened in place with a 2.5mm Allen once correct bearing pressure is set.
Ignore the first video you see on Google. He has reassembled in the incorrect order. This may be your issue.