You cannot send both broadcaster_user_id and to_broadcaster_user_id in a given subscription request.
This is likely what is confusing EventSub.
You need to send a distinct type and a distinct set of conditions
You are expecting helix to ignore useless data.
So for both follow and raid you are sending two ID’s when only one is expected
So you probably want something like
sublist = {
'channel.follow': { to_broadcaster_user_id: id }
'channel.raid': { broadcaster_user_id: id }
};
Where you define both the type/topic and the conditions
And for that instead of maping