Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
That error usually indicates a problem with the Office licence.
What is the exact version of Office you purchased, is it Office Home 2024, Office Standard 2024 or Office Pro Plus 2024 and where did you purchase the Office licence. was that from an online retailer.