Core AEM, Sling, or Apache Felix bundles restart on stopping and starting custom bundle in the Apache Felix Web Console (/system/console). This issue also happens during code deployments that include the bundle.
The custom bundle is causing the system bundle to restart, as one of the custom bundles exports a java package that is imported by a Felix Framework core bundle.
Based on your findings from the above steps, modify your pom.xml file to avoid exporting core libraries through Export-Package. For information on how to update the <Export-Package> tag, refer the bundle plug-in documentation.