Error: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'dataset')

Hello, when I change the page size to “A5”, the browser is throwing an error: “Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘dataset’)”