Hi,
You probably using the SlingRepository.loginAdministrative() method to get session, you should be using subservice session.
Check this Service Users in AEM
If your bundle still want to use SlingRepository.loginAdministrative() then you can whitelist your bundle from OSGI config manager
Arun Patidar