@Jose Sustaita Welcome to Microsoft Q&A forum!
Apologies for the delay in response. Are you following any documentation for the steps?
The error occurs because the library requires Web APIs to work, which are not available when Next.js pre-renders the page on the server-side.
This can be resolved by dynamically importing the component with ssr: false which was using azure-maps-control.
Please check the Stack Overflow issue for more details and let us know if that helps.
Feel free to respond/comment on this post for further assistance.