Framework 16 getting stuck at boot on loading screen

Which Linux distro are you using?
Ubuntu
Which release version?
(if rolling release without a release version, skip this question)
24.04 LTS

(If rolling release, last date updated?)

Which kernel are you using?
6.14.0-24-generic

Which BIOS version are you using?
0.0.3.5

Which Framework Laptop 16 model are you using? (AMD Ryzen™ 7040 Series)
AMD Ryzen 7040 Series with AMD Ryzen 9 7940HS and AMD Radeon RX 7700S

Every so often my computer refuses to boot. It shows the text boot screen where it says it loads the initial ramdisk, then it shows the framework logo/name and the Ubuntu logo with a spinner, then sometimes the spinner disappears, sometimes it freezes, but it’ll stay stuck there until it loses power or gets shut off. Repeatedly attempting to boot into it sometimes gets it to work, but it’s not reliable, and it’s incredibly frustrating