Drupal Layout Issue Unexpected Error

I am working with Manage display, but for one of my pages I get an error occurring on the Layout page.

The Error.

The website encountered an unexpected error. Please try again later.

Error: Call to a member function getEntityTypeId() on null in

Drupallayout_builderPluginBlockInlineBlock->build() (line 223 of core/modules/layout_builder/src/Plugin/Block/InlineBlock.php).
Drupallayout_builderPluginBlockInlineBlock->build() (Line: 105)
Drupallayout_builderEventSubscriberBlockComponentRenderArray->onBuildRender(Object, ‘section_component.build.render_array’, Object)
call_user_func(Array, Object, ‘section_component.build.render_array’, Object) (Line: 111)
DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch(‘section_component.build.render_array’, Object) (Line: 90)
Drupallayout_builderSectionComponent->toRenderArray(Array, 1) (Line: 86)
Drupallayout_builderSection->toRenderArray(Array, 1) (Line: 250)
Drupallayout_builderElementLayoutBuilder->buildAdministrativeSection(Object, 0) (Line: 123)
Drupallayout_builderElementLayoutBuilder->layout(Object) (Line: 97)
Drupallayout_builderElementLayoutBuilder->preRender(Array)
call_user_func_array(Array, Array) (Line: 100)
DrupalCoreRenderRenderer->doTrustedCallback(Array, Array, ‘Render #pre_render callbacks must be methods of a class that implements DrupalCoreSecurityTrustedCallbackInterface or be an anonymous function. The callback was %s. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725’, ‘silenced_deprecation’, ‘DrupalCoreRenderElementRenderCallbackInterface’) (Line: 781)
DrupalCoreRenderRenderer->doCallback(‘#pre_render’, Array, Array) (Line: 372)
DrupalCoreRenderRenderer->doRender(Array) (Line: 444)
DrupalCoreRenderRenderer->doRender(Array, ) (Line: 200)
DrupalCoreRenderRenderer->render(Array, ) (Line: 226)
DrupalCoreRenderMainContentHtmlRenderer->DrupalCoreRenderMainContent{closure}() (Line: 573)
DrupalCoreRenderRenderer->executeInRenderContext(Object, Object) (Line: 227)
DrupalCoreRenderMainContentHtmlRenderer->prepare(Array, Object, Object) (Line: 117)
DrupalCoreRenderMainContentHtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
DrupalCoreEventSubscriberMainContentViewSubscriber->onViewRenderArray(Object, ‘kernel.view’, Object)
call_user_func(Array, Object, ‘kernel.view’, Object) (Line: 111)
DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch(‘kernel.view’, Object) (Line: 156)
SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 68)
SymfonyComponentHttpKernelHttpKernel->handle(Object, 1, 1) (Line: 57)
DrupalCoreStackMiddlewareSession->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareKernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupalpage_cacheStackMiddlewarePageCache->pass(Object, 1, 1) (Line: 85)
Drupalpage_cacheStackMiddlewarePageCache->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
StackStackedHttpKernel->handle(Object, 1, 1) (Line: 708)
DrupalCoreDrupalKernel->handle(Object) (Line: 19)

It has something to do with

Path: /colors/web/node/1/layout. DrupalCoreHttpExceptionCacheableAccessDeniedHttpException: The ‘configure any layout’ permission is required. in DrupalCoreRoutingAccessAwareRouter->checkAccess() (line 117 of /Users//Sites//web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

Thanks.