Please file a bug report. Include your version (2.36.7), the specific code snippet you found, and the error message. This will significantly speed up a fix by the core team.
Great catch identifying the exact lines in the node source code.
As @Lopez pointed out, Atlassian changed the Jira Cloud search endpoint parameters to expect a single comma-separated string for expand instead of an array, which causes the native Jira node to fail when converting it.
Until the n8n core team patches the node parameter handling, switching to an HTTP Request node using your existing Jira credentials is the best immediate workaround.