In the support article: If you subscribe to Apple One and use a different Apple Account for iCloud - Apple Support Apple alludes to using a different Apple ID just for media, subscriptions, and purchases. Try:
Go to the App Store app, choose “Sign Out” in the Store menu, then click on the “sign in” button that appears in the main window. You can then sign into the other account. (from: Using different Apple ID for media & purc… - Apple Community )
Related to that is: Use a different Apple ID to share purchases with Family Sharing as outlined in Use a different Apple Account to share purchases with Family Sharing - Apple Support
If you encounter issues they may be related to —> View and remove your devices that are associated with your Apple Account for purchases - Apple Support
‘When you try to associate a device that was previously associated, you might notice a message that says, “This device is associated with another Apple Account. You cannot associate this device with another Apple Account for [number] days.” You might need to wait up to 90 days to associate the device with a different Apple Account.’