In MySQL 8, you must put the subquery in a derived table:
UPDATE details_audit a JOIN ( SELECT COUNT(*) AS cnt FROM details_audit WHERE sort_id < 100 ) b SET a.count_change_below_100 = b.cnt