Weird sounds from Sram GX crank / shifters?
All of the rattling and popping appears to be coming from chain rub on the front derailleur, poor rear derailment indexing, and the chain jumping on the rear cassette sprockets.
You seem to have convinced yourself that the noises are caused by the crank bearings. That's highly unlikely and easily disproved. Take the chain off the chainrings and spin the crank - you should not hear any noises. Also check for play in the bottom bracket bearings and any 'notchiness' as you spin the crank.
To address the drivetrain issues, first check the chain is not over-worn (there are ways to estimate this but a $10 chain wear gauge is a good investment). Also check sprocket wear.
Check your front and rear derailleur setup. The Park Tool Repair Help site has easy to follow, comprehensive guides.
https://www.parktool.com/blog/repair-help/rear-derailleur-adjustment
https://www.parktool.com/blog/repair-help/front-derailleur-adjustment