I think it shares the APK, for example when you install an app from the app store the first time it downloads and installs it, but when you install it again from the work profile it doesn't need to download it.
That said if you are modding the app, if you change the app id (might be called something else), then android might be ok because it thinks they're different apps entirely avoiding the problem.