With the (ATM) highest version of QR codes and the minimal error correction, you're limited to 4,296 bytes(0).
And V40 is not something I've seen(1) in the wild :)
0: https://www.qrcode.com/en/about/version.html 1: https://commons.wikimedia.org/wiki/File:Qr-code-ver-40.svg