You can try this steps bellow :
>> Check Your Log File Size Settings
Open wf.msc
> Properties > Logging tab:
- Verify log file size is reasonable (4 MB or less).
- Reduce it if it's much larger.
Uncheck and recheck "Log dropped packets" or "Log successful connections" to reset the subsystem.
>> Disable Pre-allocation (if possible)
Windows Firewall itself doesn't expose pre-allocation behavior directly, but you can try:
- Disable firewall logging (
Netsh advfirewall
) temporarily. - Delete
pfirewall.log
. - Re-enable logging — this forces Windows to recreate the file cleanly by using this script
netsh advfirewall set currentprofile logging droppedconnections disable
del %systemroot%\system32\LogFiles\Firewall\pfirewall.log
netsh advfirewall set currentprofile logging droppedconnections enable
you can check here for more details : https://woshub.com/configure-windows-firewall-logging/