I am currently following this tutorial to get access to the memory map via UEFI Boot Services. Currently, my code is able to retrieve the memory map in virtual environments like QEMU and on actual hardware (my desktop PC) but my laptop (has UEFI support) returns an INVALID_PARAMETER error instead of the expected BUFFER_TOO_SMALL and I have little to no clue as to why. From there it successfully manages to set my memory map in the allocated pool however I find that the memory map is full of garbage values that then ruin the rest of the code in my PageFrameAllocator.
(The addresses depicted in the pictures are the results of ten RequestPage() calls to my PageFrameAllocator)
Here is what it looks like when it works (QEMU):

And here is the non-working version (Laptop):

(Currently those addresses can also be 0x000000...)
Despite looking around for months I've found very few resources to do with the topic, and any of which I do find seem to have no known instances of this problem.
Helpful links:
Github
Files associated with memory (excluding bootloader)
Bootloader
Kernel
Yes, I am aware that the organization situation is quite dire, I had hoped to fix it once this issue is resolved :D