The aggregated number of events for a whole database or particular queries appears to be wrong when the server gets restarted (or the pg_wait_sampling data gets otherwise reset, e.g. via pg_wait_sampling_reset_profile(), see powa-team/powa#178).
The numbers appear to high for me, but it is a bit difficult to generate a reproducer. The problem is likely the max(count) - min(count) here:
LOG: statement: SELECT srvid, queryid, ps.query, event_type, event, sum(count) AS counts
FROM (
SELECT srvid, queryid, dbid, datname, event_type, event,
max(count) - min(count) AS count
FROM
public.powa_databases,
LATERAL
[...]