Certain application windows randomly freeze when opening

As an example that I can repeat, opening System Settings works just fine. However, when I try to switch to “About this System” or “Power Management” the system settings window freezes for several minutes. I can drag it around, but it won’t update. Eventually, it will update and I can use it like normal. Below is the output from the journalctl. The first line is the message that comes up when I click on “Power Management.” The rest of the lines do not show up until the system settings window updates.

Mar 11 12:28:07 blackmage systemsettings[11279]: Starting libddcutil. library built Not set at Not set. stdout_stderr_redirected=true
Mar 11 12:31:38 blackmage NetworkManager[734]: <info> [1741714298.6407] device (wlan0): set-hw-addr: set MAC address to F2:28:3F:42:30:66 (scanning)
Mar 11 12:32:42 blackmage systemsettings[11279]: kf.kirigami.layouts: FormData.buddyFor must be a direct child of the attachee. Attachee: RunScriptEdit_QMLTYPE_209_QML_252(0x628926d98450, parent=0x6289254b0fa0, geometry=0,0 0x0), buddyFor: ActionTextField_QMLTYPE_104(0x628926d99ad0, parent=0x628926d99210, geometry=
0,0 0x0)
Mar 11 12:32:42 blackmage systemsettings[11279]: kf.kirigami.layouts: FormData.buddyFor must be a direct child of the attachee. Attachee: RunScriptEdit_QMLTYPE_209_QML_248(0x628926d50ea0, parent=0x6289254b0fa0, geometry=0,0 0x0), buddyFor: ActionTextField_QMLTYPE_104(0x628926d52880, parent=0x628926d51f70, geometry=
0,0 0x0)
Mar 11 12:32:42 blackmage systemsettings[11279]: kf.kirigami.layouts: FormData.buddyFor must be a direct child of the attachee. Attachee: RunScriptEdit_QMLTYPE_209_QML_245(0x628926d35cb0, parent=0x6289254b0fa0, geometry=0,0 0x0), buddyFor: ActionTextField_QMLTYPE_104(0x628926d31b70, parent=0x628926d31720, geometry=
0,0 0x0)
Mar 11 12:32:42 blackmage systemsettings[11279]: Failed to query platform profile choices "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
Mar 11 12:32:42 blackmage systemd[1]: Started dbus-:1.2-org.kde.powerdevil.chargethresholdhelper@3.service.
Mar 11 12:32:42 blackmage kwin_wayland[1204]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x642606fff850)
Mar 11 12:32:42 blackmage kwin_wayland[1204]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x642606fff850)
Mar 11 12:32:52 blackmage systemd[1]: dbus-:1.2-org.kde.powerdevil.chargethresholdhelper@3.service: Deactivated successfully.