This is the log https://ufile.io/p5wj1hu0
I'm not sure if this is relevant, but I added pci=nommconf
to the kernel parameters as I had errors similar to the one in this topic, otherwise the log was over 40 000 lines long.
Edit: I'm not sure if this is exactly a kernel problem, as I get the same error when booting with the LTS kernel, which is older than the one installed with the offline installer.
Gifting an Apple product is bad to begin with.